package com.nondo.dean.product.model.result;

import java.math.BigDecimal;
import java.util.List;

/**
 * 物料清单
 * 
 * @author zhaolijin
 * @date 2018年4月27日
 */
public class OrderProductResult {
    private Integer id; // 产品主件ID
    private String code; // 产品编码
    private String name; // 产品名称
    private String mainImage; // 产品主图
    private String businessCode; // 事业部代码
    private String unit; // 单位
    private String priceGrade; // 价格等级
    private BigDecimal salePrice; // 销售价
    private List<OrderProduct> childList; // 产品子件列表

    /**
     * @return the id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * @return the code
     */
    public String getCode() {
        return code;
    }

    /**
     * @param code the code to set
     */
    public void setCode(String code) {
        this.code = code;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the mainImage
     */
    public String getMainImage() {
        return mainImage;
    }

    /**
     * @param mainImage the mainImage to set
     */
    public void setMainImage(String mainImage) {
        this.mainImage = mainImage;
    }

    /**
     * @return the businessCode
     */
    public String getBusinessCode() {
        return businessCode;
    }

    /**
     * @param businessCode the businessCode to set
     */
    public void setBusinessCode(String businessCode) {
        this.businessCode = businessCode;
    }

    /**
     * @return the unit
     */
    public String getUnit() {
        return unit;
    }

    /**
     * @param unit the unit to set
     */
    public void setUnit(String unit) {
        this.unit = unit;
    }

    /**
     * @return the priceGrade
     */
    public String getPriceGrade() {
        return priceGrade;
    }

    /**
     * @param priceGrade the priceGrade to set
     */
    public void setPriceGrade(String priceGrade) {
        this.priceGrade = priceGrade;
    }

    /**
     * @return the salePrice
     */
    public BigDecimal getSalePrice() {
        return salePrice;
    }

    /**
     * @param salePrice the salePrice to set
     */
    public void setSalePrice(BigDecimal salePrice) {
        this.salePrice = salePrice;
    }

    /**
     * @return the childList
     */
    public List<OrderProduct> getChildList() {
        return childList;
    }

    /**
     * @param childList the childList to set
     */
    public void setChildList(List<OrderProduct> childList) {
        this.childList = childList;
    }

    public static class OrderProduct {
        private Integer id; // 产品ID
        private String code; // 产品编码
        private String name; // 产品名称
        private String mainImage; // 产品主图
        private String businessCode; // 事业部代码
        private String unit; // 单位
        private String priceGrade; // 价格等级
        private BigDecimal salePrice; // 销售价

        /**
         * @return the id
         */
        public Integer getId() {
            return id;
        }

        /**
         * @param id the id to set
         */
        public void setId(Integer id) {
            this.id = id;
        }

        /**
         * @return the code
         */
        public String getCode() {
            return code;
        }

        /**
         * @param code the code to set
         */
        public void setCode(String code) {
            this.code = code;
        }

        /**
         * @return the name
         */
        public String getName() {
            return name;
        }

        /**
         * @param name the name to set
         */
        public void setName(String name) {
            this.name = name;
        }

        /**
         * @return the mainImage
         */
        public String getMainImage() {
            return mainImage;
        }

        /**
         * @param mainImage the mainImage to set
         */
        public void setMainImage(String mainImage) {
            this.mainImage = mainImage;
        }

        /**
         * @return the businessCode
         */
        public String getBusinessCode() {
            return businessCode;
        }

        /**
         * @param businessCode the businessCode to set
         */
        public void setBusinessCode(String businessCode) {
            this.businessCode = businessCode;
        }

        /**
         * @return the unit
         */
        public String getUnit() {
            return unit;
        }

        /**
         * @param unit the unit to set
         */
        public void setUnit(String unit) {
            this.unit = unit;
        }

        /**
         * @return the priceGrade
         */
        public String getPriceGrade() {
            return priceGrade;
        }

        /**
         * @param priceGrade the priceGrade to set
         */
        public void setPriceGrade(String priceGrade) {
            this.priceGrade = priceGrade;
        }

        /**
         * @return the salePrice
         */
        public BigDecimal getSalePrice() {
            return salePrice;
        }

        /**
         * @param salePrice the salePrice to set
         */
        public void setSalePrice(BigDecimal salePrice) {
            this.salePrice = salePrice;
        }
    }
}
